Now we have to check for cursor position and react to it. Click frame 15 on the timeline of movie clip symbol, scripts, and in the Frame Actions window chose Set variable. Name the variable mouseh in the Variable field..Next, place the cursor in the Value field and click inside it as if to enter text. Select the action getProperty. We will now set our limits via an IF-else construct. Enter the code: if (mouseh < 20) { mouseh = 20; } else if (mouseh > 380) { mouseh = 380; } We will need to do the same check for the mouse y position.